package com.example.tooldemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/")
public class TestController {

    @RequestMapping("/test")
    @ResponseBody
    public String index(){
        //log.info("++++");
        return "hello world";
    }

    @RequestMapping("/")
    public String html(){
        return "index";
    }

}
